﻿<%@ Page Theme="BlueSkin" Title="نظام التدريب الالكتروني : الدعم الفني --> طلبات الدعم المرسلة" Language="C#" MasterPageFile="~/LmsWebSite/MasterAR.master" AutoEventWireup="true" CodeFile="ChangeRequestAR.aspx.cs" Inherits="ChangeRequestAR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="right" class="heading">
               <a href="SupportMainAR.aspx">الدعم الفني</a> --> طلبات الدعم المرسلة
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins  direction" style="margin-bottom:20px;margin-left:30px;margin-right:30px;">
        

         <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="بحث" 
                onclick="btnSearch_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        
        
        <div class="clearing" style="height:10px;"></div>

         <div class="aligning allWidthWithMargins  direction" >
            <asp:GridView ID="grdUsers" runat="server" 
                AutoGenerateColumns="False" AllowPaging="True" 
                  Font-Size="12px" onpageindexchanging="grdUsers_PageIndexChanging" 
                 EnableModelValidation="True" Width="840px">
                <HeaderStyle HorizontalAlign="Center"/>

                <RowStyle HorizontalAlign="Center" />

                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="lblEmptyGrid" runat="server" Text="Label" >لا يوجد طلبات</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                                  
               
                
                
                
                    <asp:BoundField DataField="ID" HeaderText="رقم الطلب" SortExpression="ID" 
                        HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                    

                    <HeaderStyle CssClass="gridRowStyle" />
                    <ItemStyle CssClass="gridRowStyle" />
                    </asp:BoundField>
                    

                    <asp:BoundField DataField="Title" HeaderText="موضوع الطلب" SortExpression="Title" />


                    <asp:TemplateField HeaderText="نوع الطلب" SortExpression="RequestTypeID">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblTicketType" Text='<%#((DatabaseComponent.Ticket)(Container.DataItem)).objTicketType.TicketTypeNameAR%>'></asp:Label>


                            
                        
                        </ItemTemplate>
                    
                        
                    </asp:TemplateField>



                    <asp:BoundField DataField="StartTime" HeaderText="وقت الارسال" 
                        SortExpression="StartTime" />


                    <asp:BoundField DataField="ModifyTime" HeaderText="اخر تحديث" 
                        SortExpression="ModifyTime" />


                    
                     <asp:TemplateField HeaderText="مسؤول الدعم" SortExpression="OperatorID">
                        <ItemTemplate>

                        
                            <asp:Label runat="server" ID="lblOperator" Text='<%#((DatabaseComponent.Ticket)(Container.DataItem)).objOperator.getFullNameAR()%>'></asp:Label>


                            
                        
                        </ItemTemplate>
                    
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                    
                   <asp:TemplateField HeaderText="الاولوية" SortExpression="PeriorityID">
                        <ItemTemplate>

                        
                            <asp:Label runat="server" ID="lblPeriority" Text='<%#((DatabaseComponent.Ticket)(Container.DataItem)).objTicketPeriority.TicketPeriorityAR == ""?"عادية" : ((DatabaseComponent.Ticket)(Container.DataItem)).objTicketPeriority.TicketPeriorityAR %>'></asp:Label>


                            
                        
                        </ItemTemplate>
                    
                        
                    </asp:TemplateField>
                                  
               
                 <asp:TemplateField HeaderText="الاجراء" >
                        <ItemTemplate>

                            
                            

                            <a title="عرض الطلب" href='<%# "./EditRequestAR.aspx?ID=" + Eval("ID").ToString() %>'>عرض</a>                
                        
                        </ItemTemplate>
                    
                        
                    </asp:TemplateField>




                
                
                </Columns>
                
                
            </asp:GridView>
        </div>


    </div>

    <div class="clearing" style="height:10px"></div>

    <div class="allWidthWithMargins direction aligning" style="margin-left:30px;margin-right:30px">
        <div class="aligning direction" style="float:right">
                <asp:Button ID="btnBack" runat="server" Text="رجوع" CausesValidation="false" OnClientClick="history.go(-1);return false;" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
        <div class="clearing" style="height:10px"></div>
    </div>


    </ContentTemplate>
    </asp:UpdatePanel>
    

</asp:Content>

